<?php 
$CI =& get_instance();
$CI->load->library("admin/admin_header_lib");
$CI->admin_header_lib->display_header_element(array("script"=>array("jquery")));
$CI->admin_header_lib->display_header();

$CI->load->library('admin/admin_sidebar_lib');
$CI->admin_sidebar_lib->display_sidebar();

?>

<!--End  List-->
<div class="admin_right">
	<div class="email_section">
    <?php echo  form_open('admin/paper_sizes/action'); ?>
    	<ul>
        	<li><h2 class="head02">paper size </h2></li>
            <div class="line6"></div>
            <div class="height5"></div>
            <li><p class="white_bold">Title</p></li>
            <li>
              <input type="hidden" name="page" value="<?php echo $page; ?>" />
        <input type="hidden" name="papersize_id" value="<?php echo  $paper_sizes_detail['papersize_id'] ?>" />
        <input type="text" name="papersize_title" value="<?php 
        if(set_value('papersize_title'))
        {echo set_value('papersize_title');}else{
        echo $paper_sizes_detail['papersize_title'];}?>"/>
        <?php echo form_error('papersize_title'); ?>
            </li>
            <div class="height5"></div>
            <li><p class="white_bold">Width :<span class="normal">(mm)</span></p></li>
            
            <li> <input type="text" name="papersize_width" value="<?php  if(set_value('papersize_width'))
        {echo set_value('papersize_width');}else{
        echo $paper_sizes_detail['papersize_width'];} ?>"/>
        <?php echo form_error('papersize_width'); ?></li>
        <div class="height5"></div>
        <li><p class="white_bold">Height : <span class="normal">(mm)</span></p> </li>
        <li><input type="text" name="papersize_height" value="<?php  if(set_value('papersize_height'))
        {echo set_value('papersize_height');}else{
        echo $paper_sizes_detail['papersize_height'];} ?>"/>
        <?php echo form_error('papersize_height'); ?></li>
        <div class="height5"></div>
        <li><a class="red13" href="<?php echo site_url('admin/paper_sizes/index/'.$page); ?>">&gt;&gt; back</a> </li>
        <div class="line6"></div>
        <li>
        <input type="submit" name="my_submit" value="<?php if(!empty($paper_sizes_detail)){echo 'edit';}else{echo 'add';}?>"/></li>
        <div class="line6"></div>
        </ul>
         </form> 
    </div>

 
       
     
      
        <?php /*?><table>
        
		<tr><td>title : </td><td>
          <?php echo  form_open('admin/paper_sizes/action'); ?>
         <input type="hidden" name="page" value="<?php echo $page; ?>" />
        <input type="hidden" name="papersize_id" value="<?php echo  $paper_sizes_detail['papersize_id'] ?>" />
        <input type="text" name="papersize_title" value="<?php 
        if(set_value('papersize_title'))
        {echo set_value('papersize_title');}else{
        echo $paper_sizes_detail['papersize_title'];}?>"/>
        <?php echo form_error('papersize_title'); ?>
        </td></tr>
        
        <tr>
        <td>width : </td><td>
        <input type="text" name="papersize_width" value="<?php  if(set_value('papersize_width'))
        {echo set_value('papersize_width');}else{
        echo $paper_sizes_detail['papersize_width'];} ?>"/>
        <?php echo form_error('papersize_width'); ?>
        </td><td>mm</td></tr>
        <tr>
        <td>height : </td><td>
        <input type="text" name="papersize_height" value="<?php  if(set_value('papersize_height'))
        {echo set_value('papersize_height');}else{
        echo $paper_sizes_detail['papersize_height'];} ?>"/>
        <?php echo form_error('papersize_height'); ?>
        </td><td>mm</td></tr>
        
		<tr>
        <td >
        <a href="<?php echo site_url('admin/paper_sizes/index/'.$page); ?>">back</a> | 
        <input type="submit" name="my_submit" value="<?php if(!empty($paper_sizes_detail)){echo 'edit';}else{echo 'add';}?>"/>
        </form>  
		</tr>
        
        </tr>
         </table><?php */?>
        
        <?php //endif; ?>
       

 
 
<?php /*  end of all  content  */ ?>
</div><!-- page noright -->

<?php  $this->load->view(TEMPLATE_NAME.'/admin/footer');?>